package example.com.zyfypt_618zgm.model;


import retrofit2.Call;

import java.util.List;

import example.com.zyfypt_618zgm.bean.FocusResult;
import example.com.zyfypt_618zgm.bean.UserBean;
import example.com.zyfypt_618zgm.iface.ListFocusiface;
import example.com.zyfypt_618zgm.service.ListFocusService;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by 小茗同学 on 2017/6/1.
 */

public class ListFocusModel implements ListFocusiface {
    private Retrofit retrofit;
    private String BASEURL="http://amicool.neusoft.edu.cn/";
    public ListFocusModel() {
        retrofit =new Retrofit.Builder().baseUrl(BASEURL).addConverterFactory(GsonConverterFactory.create()).build();
    }

    @Override
    public Call<List<FocusResult<UserBean>>> getFocusUserList(String mod, int page, String sessionID) {
        ListFocusService ListFocusService =retrofit.create(ListFocusService.class);
        return ListFocusService.getFocusUserList(mod,page,sessionID);
    }
}
